<div class="top_extra">
	<h2 class="head-title"><{t}><{$title}><{/t}></h2>
    <{include file="analysis/time_header.html" app="ectools"}>
    <{if $detail_hidden < 1}>
	<div class="large">
        <{include file="analysis/detail.html" app="ectools"}>
	</div>
    <{/if}>
	<table class="chart-view">
		 <tr>
			<td width="65%" valign="top">
                <div class="finder-packet chart-tabs">
                    <h5 class="flt"><{t}>销售统计<{/t}></h5>
                    <ul class="clearfix">
                        <{foreach from=$graph key=key item=item}>
                            <li class='<{if $target==$key}> current<{/if}>'>
                                <a href="javascript:void(0);"><span><{$item.name}></span></a>
                            </li>
                        <{/foreach}>
                    </ul>
                </div>
                <div style="height:<{$iframe_height}>px;overflow:hidden;border:4px #efefef solid;" class="gridlist">
                    <{foreach from=$graph key=key item=item}>
                    <div class="loading chart-items" >
                        <textarea class="textarea-lazyload dis_n">
                            <iframe frameborder="0" src="index.php?app=ectools&ctl=admin_analysis&act=chart_view&show=line&target=<{$key}><{$ext_url}>" scrolling="no"  width="100%" height="100%"></iframe>
                        </textarea>
                    </div>
                    <{/foreach}>
                </div>
			</td>
			<td width="1%">&nbsp;</td>
			<td width="34%" valign="top">
                 <{$rank_html}>
			</td>
		 </tr>
	</table>
</div>

<script>
	window.addEvent('domready',function(e){
		var lazyload = new LazyLoad();
		new ItemAgg($ES('.sort li'),$ES('.chart-view .sort-items'),{
			activeName:'current',
			onActive:function(tab,item){
				lazyload.loadCustomLazyData(item,'textarea');
				if(window.ie){
					var itemcur=$E('.chart-view .chart-item-cur');
					$E('iframe',itemcur).contentWindow.location.reload();
				}
			}
		});
	});
</script>
